<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>AI人脸登录</title>
    </head>
    <body>
    <div align="center">
        <p id="flag" style="text-align: center"></p>
    </div>
    <div class="getface" style="position: absolute;top: 15%;left: 35%;">
        <video id="video" width="400px" height="400px" autoplay="autoplay"></video>
        <canvas id="canvas" width="400px" height="400px" style="display: none;"></canvas>
    </div>
    </body>
    <script src="/jquery/jquery-3.6.0.js"></script>
    <script src="/aifacejs/aiface.js"></script>
    <script>
        $(function () {
            openMedia();
            setTimeout("step01()", 1000);                             // 等待1秒 开启摄像头等待
            setTimeout("step02()", 2000);                             // 等待2秒 提示用户抬头看正前方
            setTimeout("step03('/aiface/registerFace')", 3000);       // 等待3秒 拍照并上传
        })
    </script>
</html>